package common;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class VSM_LogoPanel extends JPanel
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 317799271469612195L;
	
	VSM_LogoPanel()
	{
		ImageIcon logoRef = new ImageIcon(VSM_ProjectInfo.getProjectlogofile());
		Dimension size = new Dimension(logoRef.getImage().getWidth(null), logoRef.getImage().getHeight(null));  
	    setPreferredSize(size);  
	    setMinimumSize(size);  
	    setMaximumSize(size);  
	    setSize(size);  
	    setLayout(null);
	}
	
	@Override
	public void paint(Graphics g)
	{
		Graphics2D grafico = (Graphics2D)g;
		
		ImageIcon logoRef = new ImageIcon(VSM_ProjectInfo.getProjectlogofile());
		grafico.drawImage(logoRef.getImage(),0,0,null);
		
		  
	}

}
